<?php 
/* SVN FILE: $Id$ */
/* LedaResolver Test cases generated on: 2009-02-19 19:02:33 : 1235040993*/
App::import('Model', 'LedaResolver');

class LedaResolverTestCase extends CakeTestCase {
	var $LedaResolver = null;
	var $fixtures = array('app.leda_resolver');

	function startTest() {
		$this->LedaResolver =& ClassRegistry::init('LedaResolver');
	}

	function testLedaResolverInstance() {
		$this->assertTrue(is_a($this->LedaResolver, 'LedaResolver'));
	}

	function testLedaResolverFind() {
		$this->LedaResolver->recursive = -1;
		$results = $this->LedaResolver->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('LedaResolver' => array(
			'id'  => 1,
			'date_issued'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'title'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
			));
		$this->assertEqual($results, $expected);
	}
}
?>